﻿using Microsoft.EntityFrameworkCore.Migrations;

namespace Rabc.Project.Repositories.Migrations
{
    public partial class _06011 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.RenameColumn(
                name: "ParentID",
                table: "Menus",
                newName: "ParentId");

            migrationBuilder.AddColumn<string>(
                name: "Component",
                table: "Menus",
                type: "nvarchar(50)",
                maxLength: 50,
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "Redirect",
                table: "Menus",
                type: "nvarchar(500)",
                maxLength: 500,
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "RouteName",
                table: "Menus",
                type: "nvarchar(50)",
                maxLength: 50,
                nullable: true);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "Component",
                table: "Menus");

            migrationBuilder.DropColumn(
                name: "Redirect",
                table: "Menus");

            migrationBuilder.DropColumn(
                name: "RouteName",
                table: "Menus");

            migrationBuilder.RenameColumn(
                name: "ParentId",
                table: "Menus",
                newName: "ParentID");
        }
    }
}
